package cn.nawang.ebeim.api.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName: DatasourceConfig
 * @Description: TODO
 * @author fanyb
 * @date Sep 9, 2015 2:20:48 PM
 * @version v1.0
 */
@Entity
@Table(name = "tb_datasource_config", catalog = "ebeim")
public class DatasourceConfig {
  private String configId;
  private String scanType;
  private String isEncrypt;
  private String root;
  private String scanHideFile;
  private String verifyCompleteName;
  private String verifyCompleteMaxCount;
  private String verifyCompleteTimer;
  private String fileAttrGainer;
  private String recordCanNotReadFileInfo;
  private String recordEmptyDirectory;
  private String recordEmptyFile;
  private String filterFileSuffix;
  private String dbUsername;
  private String dbPassword;
  private String dbType;
  private String dbHost;
  private String dbPort;
  private String dbName;
  
  @Id
  @Column(name = "config_id", unique = true, nullable = false, length = 45)
  public String getConfigId() {
    return this.configId;
  }

  public void setConfigId(String configId) {
    this.configId = configId;
  }
  
  @Column(name = "scan_type")
  public String getScanType() {
    return scanType;
  }

  public void setScanType(String scanType) {
    this.scanType = scanType;
  }
  
  @Column(name = "is_encrypt")
  public String getIsEncrypt() {
    return isEncrypt;
  }

  public void setIsEncrypt(String isEncrypt) {
    this.isEncrypt = isEncrypt;
  }

  @Column(name = "root")
  public String getRoot() {
    return root;
  }

  public void setRoot(String root) {
    this.root = root;
  }

  @Column(name = "scan_hide_file")
  public String getScanHideFile() {
    return scanHideFile;
  }

  public void setScanHideFile(String scanHideFile) {
    this.scanHideFile = scanHideFile;
  }

  @Column(name = "verify_complete_name")
  public String getVerifyCompleteName() {
    return verifyCompleteName;
  }

  public void setVerifyCompleteName(String verifyCompleteName) {
    this.verifyCompleteName = verifyCompleteName;
  }

  @Column(name = "verify_complete_max_count")
  public String getVerifyCompleteMaxCount() {
    return verifyCompleteMaxCount;
  }

  public void setVerifyCompleteMaxCount(String verifyCompleteMaxCount) {
    this.verifyCompleteMaxCount = verifyCompleteMaxCount;
  }

  @Column(name = "verify_complete_timer")
  public String getVerifyCompleteTimer() {
    return verifyCompleteTimer;
  }

  public void setVerifyCompleteTimer(String verifyCompleteTimer) {
    this.verifyCompleteTimer = verifyCompleteTimer;
  }

  @Column(name = "file_attr_gainer")
  public String getFileAttrGainer() {
    return fileAttrGainer;
  }

  public void setFileAttrGainer(String fileAttrGainer) {
    this.fileAttrGainer = fileAttrGainer;
  }

  @Column(name = "record_can_not_read_file_info")
  public String getRecordCanNotReadFileInfo() {
    return recordCanNotReadFileInfo;
  }

  public void setRecordCanNotReadFileInfo(String recordCanNotReadFileInfo) {
    this.recordCanNotReadFileInfo = recordCanNotReadFileInfo;
  }

  @Column(name = "record_empty_directory")
  public String getRecordEmptyDirectory() {
    return recordEmptyDirectory;
  }

  public void setRecordEmptyDirectory(String recordEmptyDirectory) {
    this.recordEmptyDirectory = recordEmptyDirectory;
  }

  @Column(name = "record_empty_file")
  public String getRecordEmptyFile() {
    return recordEmptyFile;
  }

  public void setRecordEmptyFile(String recordEmptyFile) {
    this.recordEmptyFile = recordEmptyFile;
  }

  @Column(name = "filter_file_suffix")
  public String getFilterFileSuffix() {
    return filterFileSuffix;
  }

  public void setFilterFileSuffix(String filterFileSuffix) {
    this.filterFileSuffix = filterFileSuffix;
  }

  @Column(name = "db_username")
  public String getDbUsername() {
    return dbUsername;
  }

  public void setDbUsername(String dbUsername) {
    this.dbUsername = dbUsername;
  }

  @Column(name = "db_password")
  public String getDbPassword() {
    return dbPassword;
  }

  public void setDbPassword(String dbPassword) {
    this.dbPassword = dbPassword;
  }

  @Column(name = "db_type")
  public String getDbType() {
    return dbType;
  }

  public void setDbType(String dbType) {
    this.dbType = dbType;
  }

  @Column(name = "db_host")
  public String getDbHost() {
    return dbHost;
  }

  public void setDbHost(String dbHost) {
    this.dbHost = dbHost;
  }

  @Column(name = "db_port")
  public String getDbPort() {
    return dbPort;
  }

  public void setDbPort(String dbPort) {
    this.dbPort = dbPort;
  }

  @Column(name = "db_name")
  public String getDbName() {
    return dbName;
  }

  public void setDbName(String dbName) {
    this.dbName = dbName;
  }

  @Override
  public String toString() {
    return "DatasourceConfig [configId=" + configId + ", scanType=" + scanType + ", root=" + root
        + ", scanHideFile=" + scanHideFile + ", verifyCompleteName=" + verifyCompleteName
        + ", verifyCompleteMaxCount=" + verifyCompleteMaxCount + ", verifyCompleteTimer="
        + verifyCompleteTimer + ", fileAttrGainer=" + fileAttrGainer + ", recordCanNotReadFileInfo="
        + recordCanNotReadFileInfo + ", recordEmptyDirectory=" + recordEmptyDirectory
        + ", recordEmptyFile=" + recordEmptyFile + ", filterFileSuffix=" + filterFileSuffix
        + ", dbUsername=" + dbUsername + ", dbPassword=" + dbPassword + ", dbType=" + dbType
        + ", dbHost=" + dbHost + ", dbPort=" + dbPort + ", dbName=" + dbName + "]";
  }
}
